Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
14 lines (9 loc) · 320 Bytes

6.2.7 - swoole_buffer->read.md

File metadata and controls

14 lines (9 loc) · 320 Bytes

swoole_buffer->read

读取缓存区任意位置的内存。

swoole_buffer->read(int $offset, int $length)

此接口是一个底层接口,可直接操作内存。

  • $offset 偏移量
  • $length 要读取的数据长度

如果 $offset 错误或读取的长度超过实际数据的长度,返回 false